//
//  ResultObject.m
//  Cook
//
//  Created by 0.0 on 15-4-17.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "ResultModel.h"

@implementation ResultModel

- (void)dealloc
{
    [_vegetableId release];
    [_secodModel release];
    [_name release];
    [_imagePathLandscape release];
    [_clickCount release];
    
    [super dealloc];
}

- (instancetype)init
{
    self = [self initWithVegetableId:nil name:nil imagePathLandscape:nil clickCount:nil];
    
    return self;
}

- (instancetype)initWithVegetableId:(NSString *)vegetableId name:(NSString *)name imagePathLandscape:(NSString *)imagePathLandscape clickCount:(NSString *)clickCount
{
    self = [super init];
    
    if (self) {
        self.vegetableId = vegetableId;
        self.name = name;
        self.imagePathLandscape = imagePathLandscape;
        self.clickCount = clickCount;
    }
    
    return self;
}

+ (ResultModel *)resultModelWithVegetableId:(NSString *)vegetableId name:(NSString *)name imagePathLandscape:(NSString *)imagePathLandscape clickCount:(NSString *)clickCount
{
    ResultModel *model = [[ResultModel alloc] initWithVegetableId:vegetableId name:name imagePathLandscape:imagePathLandscape clickCount:clickCount];
    
    return [model autorelease];
}


@end
